The Dreamweaver JavaScript API > File manipulation functions > dom.getFrameNames()

 

dom.getFrameNames()

Availability

Dreamweaver 3.0

Description

Gets a list of all the named frames in the frameset.

Arguments

None.

Returns

An array of strings, each a name of a frame in the current frameset. Any unnamed frames are skipped. If none of the frames in the frameset is named, an empty array is returned.

Enabler

None.

Example

For a document containing four frames, two of which are named, a call to dw.getDocumentDOM().getFrameNames() might return an array containing the following strings:

"navframe"
"main_content"